package cn.com.wxd.wechat.mass.bean;


import java.io.Serializable;

import cn.com.wxd.wechat.mass.util.json.WxMpGsonBuilder;

/**
 * 微信用户分组
 * @author
 */
public class WxMpGroup implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2780273504217455504L;
	private long id = -1;
	private String name;
	private long count;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}

	public static WxMpGroup fromJson(String json) {
		return WxMpGsonBuilder.create().fromJson(json, WxMpGroup.class);
	}

	public String toJson() {
		return WxMpGsonBuilder.create().toJson(this);
	}

	public String toString() {
		return "WxMpGroup [id=" + id + ", name=" + name + ", count=" + count + "]";
	}

}
